<?



/**
 * class VVideos
 * 
 */
class VVideos_vidwiz extends View_vidwiz {

    /**
     * Ritorna il tpl del menu upload_page
     * @return string il tpl del menu upload_page
     */
    public function getUploadPage($categories){
        global $current_user;
        get_currentuserinfo();
        $this->assignVar("editor", $current_user->user_login);
        $this->assignVar("categories", $categories);
        $menu = $this->fetchTpl('vidwiz_vid_upload_page');
        return $menu;
    }
    
    public function getUploadPage_contests(){
        $contestid = $this->getRequest("contestid");
        $this->assignVar("contestid", $contestid);
        $menu = $this->fetchTpl('vidwiz_vid_upload_page_contests');
        return $menu;
    }

    /**
     * Ritorna il tpl del menu breaking_news
     * @return string il tpl del menu upload_page
     */
    public function getBreakingNewsPage($categories){
        global $current_user;
        get_currentuserinfo();
        $this->assignVar("editor", $current_user->user_login);
        $this->assignVar("categories", $categories);
        $menu = $this->fetchTpl('vidwiz_vid_breaking_news_page');
        return $menu;
    }

    /**
     * Ritorna il tpl del frontend del video
     * @param array $video
     * @param string $autostart "1" se autostart, "0" se non autostart
     * @return string Il tpl con i campi riempiti 
     */
    public function getVideoFrontend($video,$autostart,$inContest,$ratingStart,$notYetRated){
        $debug = USingleton_vidwiz::getInstances("UDebug_vidwiz");
        $this->assignVar("data",$video);
        $this->assignVar("autostart",$auotstart);
        $this->assignVar("inContest", $inContest);
        $this->assignVar("notYetRated", $notYetRated);
        $this->assignVar("ratingStart", (string)$ratingStart);
        return $this->fetchTpl('vidwiz_vid_video_frontend');
    }
    
    public function getHome(){
        
    }


} // end of VVideos
?>
